<?php
namespace Product\Model\Entity;

class Coba 
{
    public $name;
    public $quantity;
    public $owner;

    public function exchangeArray($data)
    {
        $this->name = (isset($data['name'])) ? $data['name'] : null;
        $this->quantity  = (isset($data['quantity'])) ? $data['quantity'] : null;
		$this->owner  = (isset($data['owner'])) ? $data['owner'] : null;	
    }
    public function __construct(array $options = null) {
        if (is_array($options)) {
            $this->setOptions($options);
        }
    }
	
	public function getName() {
        return $this->name;
    }

    public function setName($name) {
        $this->name = $name;
        return $this;
    }

	public function getQuantity() {
        return $this->quantity;
    }

    public function setQuantity($quantity) {
        $this->quantity = $quantity;
        return $this;
    }
    
	public function getOwner() {
        return $this->owner;
    }

    public function setOwner($owner) {
        $this->owner = $owner;
        return $this;
    }
}
?>